<form action="/search" method="POST" accept-charset="utf-8">
    <select id="tags" name="tags"></select><input type="submit" value="<?= $this->translate('Search') ?>">
<?
$usersession = new \Zend_Session_Namespace("usersession");
$is_loged = $usersession->user_id;

if($is_loged):
?>
    <input type="button" id="b_search_to_mail" name="<?=$is_loged;?>" value="<?= $this->translate('Подписаться на обновления') ?>">
    <div id="div_id_b_s_to_mail"></div>
<?endif;?>
</form>



<script type="text/javascript">
    $(document).ready(function() {
        $("#tags").fcbkcomplete({
            json_url: "/ajax/search",
            addontab: true,
            maxitems: 5,
            height: 2,
            cache: true
        });
    });
</script>